#ifndef _MINICLIENT_H_
#define _MINICLIENT_H_
#include "minirpc.h"
#include "dss_common.h"

//all APIs are async
void client_create_blob(struct rpc* mrpc, uint32_t sess_id, rpc_request_func cb, void* cb_arg);
void client_delete_blob(struct rpc* mrpc, uint32_t client_id, uint64_t blob_id, rpc_request_func cb, void* cb_arg);

void client_read_blob(struct rpc* mrpc, uint32_t client_id,uint64_t blob_id, void* buffer, uint32_t off, uint32_t len, rpc_request_func cb, void* cb_arg);
void client_write_blob(struct rpc* mrpc, uint32_t client_id, uint64_t blob_id, void* buffer, uint32_t off, uint32_t len, rpc_request_func cb, void* cb_arg);

//callback
//void client_create_blob_complete(void* arg1, void* arg2, void* arg3);
//void client_delete_blob_complete(void* arg1, void* arg2, void* arg3);

//void client_write_blob_complete(void* arg1, void* arg2, void* arg3);
//void client_read_blob_complete(void* arg1, void* arg2, void* arg3);
#endif // !_MINICLIENT_H_
